<style type="text/css">
	.fui-navbar ~ .fui-content, .fui-content.navbar{padding:0;}
	.fui-cell-group{margin-top:0;}
</style>
<link rel="stylesheet" href="../addons/jy_creditshop/resource/css/common.css?v=1" />
<link rel="stylesheet" href="../addons/jy_creditshop/resource/css/common-new.css?v=1" />
<div class='fui-page fui-page-current creditshop-creditlog-page'>
		<div class="fui-header">
				<div class="fui-header-left" ng-click="goback()">
					<a class="back"></a>
				</div>
				<div class="title">参与记录</div>
				<div class="fui-header-right"></div>
		</div>		
		<div class='fui-content'>
			<div class="fui-cell-group">
				<div class="fui-cell">
					<div class="fui-cell-icon"><i class="icon icon-jifen"></i></div>
					<div class="fui-cell-text"><p>我的兑换券: {{pagedata.member.credit4 || '0'}}</p></div>
					 	<a ng-if="pagedata.set.crediturl" href="{{pagedata.set.crediturl}}" class="external">
					 		<div class="fui-cell-remark">积兑换券说明</div>
					 	</a>
			
		 	 	</div>
			 </div>
		 
		 	<div ng-if="!pagedata.list" class="fui-message fui-message-popup in content-empty" style="display: none; margin: 0; padding: 0; position: relative;">
				<div class="icon ">
					<i class="icon icon-information"></i>
				</div>
				<div class="content">未找到参与记录~</div>
			</div>
		
			<div class="fui-list-group noborder nomargin container"></div>
	    	<div ng-if="!pagedata.list" class='infinite-loading' style="text-align: center; color: #666;">
	    		<span class='fui-preloader'></span>
	    		<span class='text'> 正在加载...</span>
	    	</div>				
			<div class="fui-list-group" style="margin-top:0" ng-repeat="item in pagedata.list">
						<a ng-if="item.type==0" class="fui-list" href="javascript:;" ng-click="access_json('jy_guashop/creditlog.log_detail//id='+item.id)">
							<div class="fui-list-media">
								<img ng-src="{{tomedia(item.goods.thumb) || '../core/resource/images/nopic.jpg'}}">
								<div class="title danger">兑换</div>
							</div>
							<div class="fui-list-inner">
								<div class="title">{{item.goods.title}}</div>
								<div class="text">{{item.createtime}}</div>
							</div>
							<div class="fui-list-media" style="display:block;display:block;display:block;font-size:0.7rem;text-align: right;width:auto">
								<p class="text-danger2">-{{item.credit}}{{item.credit_typetitle ||'积分'}}</p>
								<p>{{item.statustitle}}</p>
							</div>
						</a>
						<a ng-if="item.type==1 && item.status>1" class="fui-list" href="javascript:;" ng-click="access_json('jy_guashop/creditlog.log_detail//id='+item.id)">
							<div class="fui-list-media">
								<img ng-src="{{tomedia(item.goods.thumb)|| '../core/resource/images/nopic.jpg'}}">
								<div class="title danger">抽 奖</div>
							</div>
							<div class="fui-list-inner">
								<div class="title">{{item.goods.title}}</div>
								<div class="text">{{item.createtime}}</div>
							</div>
							<div class="fui-list-media" style="display:block;display:block;display:block;font-size:0.7rem;text-align: right;width:auto">
								<p class="text-danger2" style="background: none;">-{{item.credit}}{{item.credit_typetitle ||'积分'}}</p>
								
									<p ng-if="item.status==1" style="color: #666;">未中奖</p>
	
									<p ng-if="item.status>1" class="text-danger2">已中奖</p>
							
							</div>
						</a>
						<a ng-if="item.type==1 && item.status<=1" class="fui-list" href="javascript:;">
							<div class="fui-list-media">
								<img ng-src="{{tomedia(item.thumb)|| '../core/resource/images/nopic.jpg'}}">
								<div class="title danger">抽 奖</div>
							</div>
							<div class="fui-list-inner">
								<div class="title">{{item.goods.title || '抽 奖'}}</div>
								<div class="text">{{item.createtime}}</div>
							</div>
							<div class="fui-list-media" style="display:block;display:block;display:block;font-size:0.7rem;text-align: right;width:auto">
								<p class="text-danger2" style="background: none;">-{{item.credit}}{{item.credit_typetitle ||'积分'}}</p>
								
									<p ng-if="item.status==1" style="color: #666;">未中奖</p>
	
									<p ng-if="item.status>1" class="text-danger2">已中奖</p>
							
							</div>
						</a>
			</div>
		</div>	

</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_guashop/creditshop.creditlog4/main/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_guashop/creditshop.creditlog4/main/');
}
</script>